package com.mmall.product.mapper;

import com.mmall.pojo.entity.CategoryEntity;
import org.apache.ibatis.annotations.Mapper;

/**
 * Created by Mybatis Generator 2019/05/05
 */
@Mapper
public interface CategoryMapper {

    /**
     * 选择新增
     *
     * @param record CategoryEntity
     * @return int
     */
    int insertSelective(CategoryEntity record);

    /**
     * 主键查询
     *
     * @param id 主键
     * @return CategoryEntity
     */
    CategoryEntity selectByPrimaryKey(Long id);

    /**
     * 主键更新
     *
     * @param record CategoryEntity
     * @return int
     */
    int updateByPrimaryKeySelective(CategoryEntity record);

}